﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
    <xsl:output method="html" indent="yes"/>
  
    <xsl:template match="Items">
      <html>
        <head>
          <link rel="StyleSheet" href="default.css" type="text/css" />
        </head>

        <body>
          <h3>
            <xsl:value-of select="@Type"/> | (<xsl:value-of select="@Count"/>)
          </h3>
          <hr/>

          <table>
            <tr class="RowHeader">
              <td>架构</td>
              <td>名称</td>
            </tr>

            <xsl:for-each select="Item">
              <tr>
                <td>
                  <xsl:value-of select="Schema"/>
                </td>
                <td>
                  <a>
                    <xsl:attribute name="href">
                      <xsl:value-of select="Schema"/>.<xsl:value-of select="Name"/>.xml
                    </xsl:attribute>
                    <xsl:value-of select="Name"/>
                  </a>
                </td>
              </tr>
            </xsl:for-each>
          </table>
        </body>
        
      </html>
    </xsl:template>
</xsl:stylesheet>
